<?php
/**
 * 菜单模型
 * Enter description here ...
 * @author Administrator
 *
 */
namespace System\Model;
use Common\Model\BaseModel;
class SysMenuModel extends BaseModel{
	//自动验证
	protected $_validate = array(

	);

    function getNavList(){

        dump(1111);

        $adminInfo = getAdminInfo();
        if ($adminInfo['fk_role_id'] != 1){
            $map['pk_id'] = array('in',explode(',', $adminInfo['menu_auth']));
        }
        $map['pid'] = 0;
        $map['is_hidden'] = 0;
        $field = 'pk_id,name,control';
        $rows = $this->where($map)->field($field)->select();
        return $rows ;
    }
}
